package com.woniu.carrent.pojo;


import java.io.Serializable;

import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 
* @TableName t_order
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_order")
public class TOrder implements Serializable {

    /**
    * 
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    @TableId(value = "orderid",type = IdType.AUTO)
    private Integer orderid;
    /**
    * 
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer userid;
    /**
    * 
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer cdid;
    private String carname;
    private String pictures;
    private String lname;
    /**
    * 
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern= "yyyy-MM-dd HH:mm:ss")
    private Date creattime;
    /**
    * 
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern= "yyyy-MM-dd HH:mm:ss")
    private Date endtime;
    /**
    * 
    */
    @ApiModelProperty("")
    @TableField(value = "totalPrice")
    private BigDecimal totalprice;
    /**
    * 
    */
    @ApiModelProperty("")
    @TableField(value = "isPaid")
    private Integer ispaid;
}
